﻿@using LunwenYun.Tool.Configration;
@using LunwenYun.Infrastructure.Entities.Entity;
@{
    User user = null;
    if (HttpContext.Current.User.Identity.IsAuthenticated)
    {
        user = new User().Find(HttpContext.Current.User.Identity.Name);
    }
}
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta content="@ViewBag.Keywords" name="keywords"/>
    <meta name="description" content="@ViewBag.Description" />
    <!-- bootstrap style -->
    <link href="/content/css/bootstrap.min.css" rel="stylesheet" />
    <link href="/content/css/bootstrap-responsive.min.css" rel="stylesheet" />
    <link href="/content/css/docs.css" rel="stylesheet" />
    <!-- my style -->
    <link href="/content/css/main.css" rel="stylesheet" />
    @RenderSection("head", false)
</head>
<body data-spy="scroll" data-target=".bs-docs-sidebar">
    <!-- header -->
    <div class="header">
        <div class="container">
            您好，欢迎访问学术论文云平台！
            @Html.Partial("/Views/Shared/Partial/_IsLogin.cshtml")
        </div>
    </div>
    <div class="container top">
        <a href="/">
            <img src="/content/img/logo2.png" alt="中国论文云平台" /></a>
        <div class="pull-right">
            @*<a class="btn btn-large">我要约稿</a>*@</div>
    </div>
    <!-- menu -->
    <div class="container menu">
        <div class="navbar">
            <div class="navbar-inner">
                <a class="brand" href="/">
                    <img alt="home" src="/content/img/home.png" /></a>
                <ul class="nav">
                    <li id="likindex"><a href="/">期刊约稿</a></li>
                    <li id="likind"><a href="/j/industry">行业投稿</a></li>
                    <li id="likmlist"><a href="/j/mlist">已投稿件</a></li> 
                    @if (user == null || user.SystemRole == LunwenYun.Infrastructure.Entities.Enum.UserRole.PaperAgent)
                    { 
                        <li id="liknew"><a href="/o/newperiodical">添加期刊</a></li>
                    }
                    @if (user == null || user.SystemRole == LunwenYun.Infrastructure.Entities.Enum.UserRole.Member)
                    {
                        <li id="likcenter"><a href="/m/authorcenter">个人中心</a></li>
                    }
                    else if (user.SystemRole == LunwenYun.Infrastructure.Entities.Enum.UserRole.PaperAgent)
                    { 
                        <li id="likcenter"><a href="/o/authorcenter">约稿人中心</a></li>
                    }
                </ul>
            </div>
        </div>
    </div>
    <!-- content -->
    <div class="container">
        @RenderBody()
    </div>
    <!-- footer -->
    @Html.Partial("/Views/Shared/Partial/_footer.cshtml")
    <!-- script -->
    <script src="/scripts/jquery.js" type="text/javascript"></script>
    <script src="/scripts/bootstrap.min.js" type="text/javascript"></script>
    @RenderSection("tail", false)
</body>
</html>
